<?
	global $kam_admin, $FullUrl, $arr, $table_edit, $elements, $config_xml_list, $lg;
    $edit_url = 'admin-pro.html?do='.$table_edit.'&act=edit_full&id=';
    $delete_url = 'admin-pro.html?do='.$table_edit.'&act=del&id=';
    $deletelist_url = 'admin-pro.html?do='.$table_edit.'&act=dellist';
    $showlist_url = 'admin-pro.html?do='.$table_edit.'&act=show';
    $hidelist_url = 'admin-pro.html?do='.$table_edit.'&act=hide';
    $changeactive_url='admin-pro.html?do='.$table_edit.'&&act=changeactive&page='.(isset($_GET['page'])?$_GET['page']:'1').'&id=';
    $changehome_url='admin-pro.html?do='.$table_edit.'&act=changehome&page='.(isset($_GET['page'])?$_GET['page']:'1').'&id=';
    $changeorder_url = 'admin-pro.html?do='.$table_edit.'&act=order';
	$changesilder_url = 'admin-pro.html?do=image_post_silder&act=list_img_pro&id=';
	$export_url = 'admin-pro.html?do='.$table_edit.'&act=export_full';
	ob_start();
?>
<!-- Alternative Content Box Start -->
<?
	//print_r($arr);
    //echo $config_xml_list[30];
?>

<div class="contentcontainer">
  <div class="headings altheading">
    <h2>Download Danh Sách Sản Phẩm</h2>
  </div>
   <div class="contentbox">
   		<?php
			header( "Content-Type: application/vnd.ms-excel" );
			header('Content-Disposition: attachment; filename="http://www.thoitrangchonu.com/files/products.xls"');
			header("Content-Length: " . filesize("http://www.thoitrangchonu.com/files/products.xls"));
		
			$fp = fopen("http://www.thoitrangchonu.com/files/products.xls", "r");
			fpassthru($fp);
			fclose($fp);
		?>
   		Download <a href="<?=$FullUrl?>/files/products.xls">Here</a>
  	</div>
  </div>
  
</div>
